﻿namespace Example.Specifications
{
    using NUnit.Framework;

    using TechTalk.SpecFlow;

    [Binding]
    public class TallySteps
    {
        private Tally _tally;

        [Given("a new tally")]
        public void GivenANewTally()
        {
            _tally = new Tally();
        }

        [Then("the tally value should be (.*)")]
        public void ThenTheTallyValueShouldBe1(int expected)
        {
            var actual = _tally.Value;
            Assert.AreEqual(expected, actual);
        }

        [When("I increment")]
        public void WhenIIncrement()
        {
            _tally.Increment();
        }
    }
}